removed logging and function.