added alternative for optional variables