Had a stupid : issue on function declaration