FIX permission into class and remove costruct function