avoid repeat check in