changed bindposes to accept matrices