code streamlined