fix executing functions