end mapping