removed debug
changed log codes