added instance pointer to methods