Define bg and fg separately instead of using reverse