removed unnecessary argument and added exception logging