moved variables to top for easy editing