fixed syntaxt and prototype