cleaned up boundry check