fixed stupid variable parsing