fixed validation errors and converted some values