forgot to add visibility check