optimizing shortcuts