fix prototyping