stop calling functions where dereferencing pointers will do