Space after if
debug logic should be moved to separate file