simplified code structures