changed to new php motivate script