corected code