ifs should not be needed