made a separate handleFunc for get