removed unneccesary function