fixed coding error