back prop logic done, still need to check it