fixed specs and added helper