making layers global