compacted code ok