change boudary condition from hard constraint to penalty