minor code optimizing optimizing