removing unused funciton