cleaned up code from a past test