cleaned up utils. ready to work on op functions