passes gravity value as optional argument to the execute method of the sm