writing script for handle request