branch to simplify functions
fixed issue with logic for z.out vs elevOut