fixed some checks