cleaned up no function error