fixed conditions on attachement