add Allocate and Deallocate in Application