fixed up the signature of imapped