simplified code for Complement