fixed the prototype to actually work...