refactored actions, modified how actions are weighted