damn you duplicated logic!