moved the 3 functions inside the object!