updated comments and removed debug call