assigning funcionality