checking what is needed