replace list of format with getattr call