Revert "added warnings after code review"

Reverts YAInternship2014/rutten1994#1