added constants for increase
changed thread.sleep