not sure what its doing
fixed checking i think