fix Bitbucket case
line breaks before final returns