added console log sfor debugging