check works as desired