condition for position matrix function name