some implementations for malloc subset