fixing prototype