setting up prototype