thank you Logan but i already try this and then i have error "pan is not a member of function"