fixed code to reflect proper form