previously used prototype incorrectly. all fixed now