removed unnessesary fuction