finished prelim mount function