removed extra function declaration