error fixed and logs changed