removed no longer needed function