at least it compiles now, but I dislike this solution