completed functions
finished functions and errors