added empty space in between check to castle