removed unnused function