removed unwated function from controller