change within script command to atomsWithin for clarity