adding method functions