removed unnecesary function