developing script for controllers