fixed if statement in constructor
- seeing if I can turn this into a gem