added 2 functions