fixed bug for promoting int to float. using temp now.