fix variables names and use log to display errors