got the functionality working!!!!!!!!