made some code make sense