made java friendly