malloc for apbs