fixed coding to work