updated for checking