renamed rec() to get_rec()

added get_center()