more compacted code