removed duplicate function decleration