removed no longer used function