should be a parameter. spec tests needed.