added pascal casting