main function is complete, now the raspberry functions have to be changed