added the apex and modified rest