improvements to ocean functions