added the mix functions, fixed projection ratio