adding method for get instance