adding getProjects() function