fixed placement of require