final for mas500 submission