not sure why not working
new code added

changed code to reflect proper syntax