Change pointer to reference