correctly set prototype