rewrite of MAL service