changed transforming method, testing whether angle should be positiv or negativ