add checkFeasibility, remove comments