updated for Max 6.1