use standard functions for checking