putting all functions on the scope