check for bounds (osx)