improves AmIMaster function