good idea, will move that check to a method.