improved boundTo