fix function statament