changed mapper to table syntax