adding return statements [skip ci]