simplify
changed LOADDR macro into loaddr function