add helper functions which check operators throughly