moved minor calculation