readded some code removed due to a misleading comment (comment updated)