function to make partial works