struggling with the prototype