final version, everything´s working