added upodate function alond with a call to return to main function
added restricted extras