fixing geometry rcb functions