less calls inside pan callback