fixing global!